package com.dss.auto_deploy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
* @Description:docker仓库实体类
* @author dongshoushan
* @date 2022-09-22 14:39:03
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("adm_docker_registry")
@ApiModel(value = "docker仓库")
public class AdmDockerRegistry {

    /**
    * 主键
    */
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 容器id
     */
    @ApiModelProperty(value = "容器id")
    private String containerId;
    /**
    * 仓库名称
    */
    @ApiModelProperty(value = "仓库名称")
    private String registryName;
    @ApiModelProperty(value = "挂载路径",example = "")
    private String storagePath;
    /**
    * 所在服务器id
    */
    @ApiModelProperty(value = "所在服务器id")
    private Long serverId;

    /**
    * 端口号
    */
    @ApiModelProperty(value = "端口号")
    private Integer port;

    /**
    * docker仓库web地址
    */
    @ApiModelProperty(value = "docker仓库web地址")
    private String registryWebUrl;

    /**
    * 用户名
    */
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
    * 密码
    */
    @ApiModelProperty(value = "密码")
    private String password;

    /**
    * 创建时间
    */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
    * 更新时间
    */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
    * 安装时间
    */
    @ApiModelProperty(value = "安装时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date installTime;

}
